@echo off
echo 正在启动wx_banner服务...
echo.

echo 1. 清理并编译项目...
call mvn clean package -DskipTests -q

if %errorlevel% neq 0 (
    echo 编译失败！
    pause
    exit /b 1
)

echo.
echo 2. 启动wx_banner服务...
echo 服务将在 http://localhost:8083 启动
echo 健康检查: http://localhost:8083/api/upload/health
echo 面诊上传: POST http://localhost:8083/api/upload/faceImage
echo 舌诊上传: POST http://localhost:8083/api/upload/tongueImage
echo.

java -jar target/wx_banner-1.0-SNAPSHOT.jar

pause



